package org.divineryang.mapper;

import org.apache.ibatis.annotations.Param;
import org.divineryang.model.dto.system.SysRoleDto;
import org.divineryang.model.entity.system.SysRole;

import java.util.List;

/**
 * @program new-bee
 * @Description
 * @Author Diviner Yang
 * @Date 2024/04/20 12:55
 * @Version 1.0
 */
public interface SysRoleMapper {
    List<SysRole> findByPage(SysRoleDto sysRoleDto);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(@Param("roleId") Long roleId);

    List<SysRole> findAllRoles();

}
